import { computed, onMounted, ref } from "vue";
import axios from "axios";
const BASE_URL = "http://159.75.18.38:3001";
export interface RawBigOrderData {
    BigOrderThreshold:number,
    BuyBigOrderCount:number,
    BuyBigOrderCountPeriod:number,
    SellBigOrderCount: number,
    SellBigOrderCountPeriod: number,
    date: string
}

export type RawBigOrderDataParams = 'BigOrderThreshold' | 'BuyBigOrderCount' | 'BuyBigOrderCountPeriod' | 'SellBigOrderCount' | 'SellBigOrderCountPeriod' | 'date'

export async function getBigOrder() {
  let data
  try {
    data = await axios.get(BASE_URL + "/order");
    return data.data;
  } catch(err) {
      console.error(err);
  }
}
